package com.liyk.shop.utils;

import com.liyk.shop.domain.bean.SnowFlake;

/**
 * @program: springcloud-shop
 * @description:
 * @author: lyk
 * @create: 2019-12-13 14:35
 **/
public class IdGenerateUtil {

    private static final SnowFlake snowFlake = new SnowFlake(2,3);

    public static String generate(){
        return String.valueOf(snowFlake.nextId());
    }
}
